package cn.bdqn.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.entity.Complaints;
import cn.bdqn.entity.UsersAndComVo;

public interface ComplaintsMapper {
	List<UsersAndComVo> queryAllComplaints(@Param("context")String context,
			@Param("start")Integer start,@Param("pageSize")Integer pageSize);
	Integer queryComplaintsCount(@Param("context")String context);
	Integer saveComplaints(Complaints complaints);
	UsersAndComVo queryComplaintsbyComplaintsid(@Param("complaintsid")Integer complaintsid);
	Integer deleteComplaints(@Param("complaintsid")Integer complaintsid);
	List<UsersAndComVo> queryAllcomplaintsByguan(@Param("context")String context,@Param("start")Integer start,@Param("pageSize")Integer pageSize);
	Integer queryAllCountComplaints(@Param("context")String context);
	Integer deleteComplaintsByuserid(@Param("userid")Integer userid);
}
